From: Florian Müllner Date: Fri, 4 Mar 2022 23:58:13 +0000 (+0100) Subject: ci: Cover more node types in check-potfiles X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~516^2^2~14 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=70a896ec45f24e353ea082b3bd422c36c750391c;p=gnome-shell.git ci: Cover more node types in check-potfiles gjs enabled support for static class blocks and class fields, so adjust the script to not trip over those nodes when we start using them. Part-of: --- diff --git a/.gitlab-ci/check-potfiles.js b/.gitlab-ci/check-potfiles.js index 28448f874..0c8885e25 100644 --- a/.gitlab-ci/check-potfiles.js +++ b/.gitlab-ci/check-potfiles.js @@ -85,6 +85,10 @@ function nodesToWalk(node) { case 'BlockStatement': case 'Program': return node.body; + case 'StaticClassBlock': + return [node.body]; + case 'ClassField': + return [node.name, node.init]; case 'CallExpression': case 'NewExpression': case 'OptionalCallExpression':